clear
set more off
cd "/Users/jackpaine/Box Sync/Colonial Peace"
use dataset.dta, clear
sort ccode year
tsset ccode year


********************************************
*****TABLES AND FIGURES FOR MAIN TEXT*******
********************************************

***Figure 1. Outcomes Before and After Independence***
twoway (lpolyci v2x_polyarchy clockindep  if year<1990 & clockindep<10 &clockindep>-10 & year>=1941 ), ///
scheme(s1mono) legend(off)  ytitle("V-Dem elec. demo.",size(huge)) xtitle("Years Before/After Independence",size(huge)) ///
title("Panel A. Democracy",size(vhuge)) xlabel(,labsize(vlarge)) ylabel(,labsize(vlarge))
graph2tex,  epsfile(level_clockdem) 
twoway (lpolyci cow_war  clockindep  if year<1990 & clockindep<10 &clockindep>-10 & year>=1941 ), ///
scheme(s1mono) legend(off)  ytitle("Internal war onset",size(huge)) xtitle("Years Before/After Independence",size(huge)) ///
title("Panel B. Internal war onset",size(vhuge))  xlabel(,labsize(vlarge)) ylabel(0(.01).05,labsize(vlarge))
graph2tex,  epsfile(level_clockwar) 
twoway (lpolyci rev_growth  clockindep  if year<1990 & clockindep<10 &clockindep>-10 & year>=1941 ), ///
scheme(s1mono) legend(off)  ytitle("ln(Rev./pop.) growth",size(huge)) xtitle("Years Before/After Independence",size(huge)) ///
title("Panel C. Revenue growth",size(vhuge))  xlabel(,labsize(vlarge)) ylabel(-.2(.1).30,labsize(vlarge))
graph2tex,  epsfile(level_clockrev) 
twoway (lpolyci econ_growth  clockindep  if year<1990 & clockindep<10 &clockindep>-10 & year>=1950 ), ///
scheme(s1mono) legend(off)  ytitle("ln(GDP/pop.) growth",size(huge)) xtitle("Years Before/After Independence",size(huge)) ///
title("Panel D. Income growth",size(vhuge))  xlabel(,labsize(vlarge)) ylabel(,labsize(vlarge))
graph2tex,  epsfile(growth_clockgdp) 


***Table 2. Consequences of Decolonization: Panel Data from 1941 to 1989***
*Panel A. Post-independence vs. colonial rule
reg v2x_polyarchy L.v2x_polyarchy L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using indep, replace label nocon keep(L.independent L.v2x_polyarchy)
logit cow_war0 L.cow_incidence L.independent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using indep, append label nocon keep(L.independent L.cow_incidence)
reg rev_growth L.rev_growth L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using indep, append label nocon keep(L.independent L.rev_growth)
reg econ_growth L.econ_growth L.independent i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using indep, append label nocon tex(frag) keep(L.independent L.econ_growth)
*Panel B. Distinguishing autonomous colonial rule
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using disag, replace label nocon keep(L.autonomous L.independent L.v2x_polyarchy)
logit cow_war0 L.cow_incidence L.autonomous L.independent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using disag, append label nocon keep(L.autonomous L.independent L.cow_incidence)
reg rev_growth L.rev_growth L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using disag, append label nocon keep(L.autonomous L.independent L.rev_growth)
reg econ_growth L.econ_growth L.autonomous L.independent i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using disag, append label nocon tex(frag) keep(L.autonomous L.independent L.econ_growth)


***Table 3. Exogenous Independence Colonies***
*Panel A. Pooled sample
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent i.ccode timetrend if year<1990 & year>=1941 & fr_exo+small_colony==1, cluster(country)
outreg2 using exo, replace label nocon keep(L.autonomous L.independent L.v2x_polyarchy)
logit cow_war0 L.cow_incidence L.autonomous L.independent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode timetrend if year<1990 & year>=1941 & fr_exo+small_colony==1, cluster(country)
outreg2 using exo, append label nocon keep(L.autonomous L.independent L.cow_incidence)
reg rev_growth L.rev_growth L.autonomous L.independent i.ccode timetrend if year<1990 & year>=1941 & fr_exo+small_colony==1, cluster(country)
outreg2 using exo, append label nocon keep(L.autonomous L.independent L.rev_growth)
reg econ_growth L.econ_growth L.autonomous L.independent i.ccode timetrend if year<1990 & year>=1950 & fr_exo+small_colony==1, cluster(country)
outreg2 using exo, append label nocon keep(L.autonomous L.independent L.econ_growth) tex(frag)
*Panel B. French African colonies with 1960 independence
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent i.ccode timetrend if year<1990 & year>=1941 & fr_exo==1, cluster(country)
outreg2 using french, replace label keep(L.autonomous L.independent L.v2x_polyarchy) nocon
logit cow_war0 L.cow_incidence L.autonomous L.independent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode timetrend if year<1990 & year>=1941 & fr_exo==1, cluster(country)
outreg2 using french, append label keep(L.autonomous L.independent L.cow_incidence) nocon
reg rev_growth L.rev_growth L.autonomous L.independent i.ccode timetrend if year<1990 & year>=1941 & fr_exo==1, cluster(country)
outreg2 using french, append label keep(L.autonomous L.independent L.rev_growth) nocon
reg econ_growth L.econ_growth L.autonomous L.independent i.ccode timetrend if year<1990 & year>=1950 & fr_exo==1, cluster(country)
outreg2 using french, append label nocon keep(L.autonomous L.independent L.econ_growth) tex(frag)
*Panel C. Minor colonies
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent i.ccode timetrend if year<1990 & year>=1941 & small_colony==1, cluster(country)
outreg2 using small, replace label keep(L.autonomous L.independent L.v2x_polyarchy) nocon
logit cow_war0 L.cow_incidence L.autonomous L.independent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode timetrend if year<1990 & year>=1941 & small_colony==1, cluster(country)
outreg2 using small, append label keep(L.autonomous L.independent L.cow_incidence) nocon
reg rev_growth L.rev_growth L.autonomous L.independent i.ccode timetrend if year<1990 & year>=1941 & small_colony==1, cluster(country)
outreg2 using small, append label keep(L.autonomous L.independent L.rev_growth) nocon
reg econ_growth L.econ_growth L.autonomous L.independent i.ccode timetrend if year<1990 & year>=1950 & small_colony==1, cluster(country)
outreg2 using small, append label keep(L.autonomous L.independent L.econ_growth) nocon tex(frag)


***********************************************************
*****SUPPLEMENTARY INFORMATION REFERENCED IN MAIN TEXT*****
***********************************************************

*Check for stationarity
reg v2x_polyarchy i.ccode i.year if year<1990 & year>=1941
predict demo_residuals, resid
reg cow_war0 i.ccode i.year if year<1990 & year>=1941
predict war_residuals, resid
reg rev_growth i.ccode i.year if year<1990 & year>=1941
predict rev_residuals, resid
reg econ_growth i.ccode i.year if year<1990 & year>=1941
predict gdp_residuals, resid
xtunitroot fisher demo_residuals if year<1990 & year>=1941, dfuller lag(1)
xtunitroot fisher war_residuals if year<1990 & year>=1941, dfuller lag(1)
xtunitroot fisher rev_residuals if year<1990 & year>=1941, dfuller lag(1)
xtunitroot fisher gdp_residuals if year<1990 & year>=1941, dfuller lag(1)
drop demo_residuals war_residuals rev_residuals gdp_residuals

*Calculations in the first paragraph of section "Main Patterns"
summarize v2x_polyarchy if year<1990 & L.clockindep==0 
summarize v2x_polyarchy if year<1990 & L.clockindep==-5 
summarize v2x_polyarchy if year<1990 & L.clockindep==10 

*Precision estimates
gen demo_se=.
gen demo_sd=.
gen demo_ratio=.
gen war_se=.
gen war_sd=.
gen war_ratio=.
gen rev_se=.
gen rev_sd=.
gen rev_ratio=.
gen gdp_se=.
gen gdp_sd=.
gen gdp_ratio=.
reg v2x_polyarchy L.v2x_polyarchy L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
mat A=r(table)
local t = A[2,2]
replace demo_se=`t'
summarize v2x_polyarchy if year<1990 & e(sample)==1
replace demo_sd=r(sd)
replace demo_ratio=demo_se/demo_sd
reg cow_war0 L.cow_incidence L.independent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
mat A=r(table)
local t = A[2,2]
replace war_se=`t'
summarize cow_war0 if year<1990 & e(sample)==1
replace war_sd=r(sd)
replace war_ratio=war_se/war_sd
reg rev_growth L.rev_growth L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
mat A=r(table)
local t = A[2,2]
replace rev_se=`t'
summarize rev_growth if year<1990 & e(sample)==1
replace rev_sd=r(sd)
replace rev_ratio=rev_se/rev_sd
reg econ_growth L.econ_growth L.independent i.ccode i.year if year<1990 & year>=1950, cluster(country)
mat A=r(table)
local t = A[2,2]
replace gdp_se=`t'
summarize econ_growth if year<1990 & e(sample)==1
replace gdp_sd=r(sd)
replace gdp_ratio=gdp_se/gdp_sd
list demo_ratio war_ratio rev_ratio gdp_ratio if year<1990 & country=="United States" & year==1816
drop demo_se demo_sd demo_ratio war_se war_sd war_ratio rev_se rev_sd rev_ratio gdp_se gdp_sd gdp_ratio

*Long-term multipliers for Table 2 estimates
reg v2x_polyarchy L.v2x_polyarchy L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
nlcom _b[L.independent]/(1-_b[L.v2x_polyarchy])
summarize v2x_polyarchy if year<1990 & year==1945 
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
nlcom _b[L.autonomous]/(1-_b[L.v2x_polyarchy])
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
nlcom _b[L.independent]/(1-_b[L.v2x_polyarchy])


************************************************
*****SECTION A.1. ADDITIONAL DATA SUMMARY*******
************************************************

***Table A.1. Summary Statistics***
gen L_v2x_polyarchy=L.v2x_polyarchy
gen demo_sample=1 if year<1990 & year>=1941
replace demo_sample=. if year<1990 & v2x_polyarchy==.
replace demo_sample=. if year<1990 & L_v2x_polyarchy==.
gen L_rev_growth=L.rev_growth
gen rev_sample=1 if year<1990 & year>=1941
replace rev_sample=. if year<1990 & rev_growth==.
replace rev_sample=. if year<1990 & L_rev_growth==.
gen L_econ_growth=L.econ_growth
gen econ_sample=1 if year<1990 & year>=1950
replace econ_sample=. if year<1990 & econ_growth==.
replace econ_sample=. if year<1990 & L_econ_growth==.
summarize L_independent L_autonomous if year<1990 & year>=1941
summarize v2x_polyarchy if year<1990 & demo_sample==1
summarize cow_war0 if year<1990 & year>=1941
summarize rev_growth if year<1990 & rev_sample==1
summarize econ_growth if year<1990 & econ_sample==1
drop demo_sample rev_sample econ_sample


***Figure A.1. Political Outcomes Within 40 Years of Independence***
twoway (lpolyci v2x_polyarchy clockindep  if clockindep<40 &clockindep>-40 & exclude_80democracy==0), ///
scheme(s1mono) legend(off)  ytitle("V-Dem elec. demo.",size(huge)) xtitle("Years Before/After Independence",size(huge)) ///
title("Panel A. Democracy",size(vhuge)) xlabel(,labsize(vlarge)) ylabel(,labsize(vlarge))
graph2tex,  epsfile(40level_clockdem) 
twoway (lpolyci cow_war  clockindep  if clockindep<40 &clockindep>-40 ), ///
scheme(s1mono) legend(off)  ytitle("Internal war onset",size(huge)) xtitle("Years Before/After Independence",size(huge)) ///
title("Panel B. Internal war onset",size(vhuge))  xlabel(,labsize(vlarge)) ylabel(,labsize(vlarge))
graph2tex,  epsfile(40level_clockwar) 


***Table A.2. Summary of Democracy Levels***
gen ordersample=0
replace ordersample=1 if year<1990 &  year==1950
gsort -ordersample -diff1_demo country
gen order1=_n if year<1990 & diff1_demo!=.
gsort -ordersample -diff2_demo country
gen order2=_n if year<1990 & diff2_demo!=.
sort country year
outsheet country pre_demo auton_demo post_demo diff1_demo order1 diff2_demo order2 using showdemo.txt if year<1990 & ordersample==1, comma replace
drop order1 order2


***Table A.3. Summary of Internal War Onset Frequency***
gsort -ordersample -diff1_war country
gen order1=_n if year<1990 & diff1_war!=.
gsort -ordersample -diff2_war country
gen order2=_n if year<1990 & diff2_war!=.
sort country year
outsheet country pre_war auton_war post_war diff1_war order1 diff2_war order2 using showwar.txt if year<1990 & ordersample==1, comma replace
drop order1 order2


***Table A.4. Summary of Revenue Growth***
gsort -ordersample -diff1_rev country
gen order1=_n if year<1990 & diff1_rev!=.
gsort -ordersample -diff2_rev country
gen order2=_n if year<1990 & diff2_rev!=.
sort country year
outsheet country pre_rev auton_rev post_rev diff1_rev order1 diff2_rev order2 using showrev.txt if year<1990 & ordersample==1, comma replace
drop order1 order2


***Table A.5. Summary of Economic Growth***
gsort -ordersample -diff1_gdp country
gen order1=_n if year<1990 & diff1_gdp!=.
gsort -ordersample -diff2_gdp country
gen order2=_n if year<1990 & diff2_gdp!=.
sort country year
outsheet country pre_gdp auton_gdp post_gdp diff1_gdp order1 diff2_gdp order2 using showgdp.txt if year<1990 & ordersample==1, comma replace
drop order1 order2
drop ordersample

********************************************************
***SECTION A.2. ALTERNATIVE TIME PERIODS AND MEASURES***
********************************************************

sort ccode year
tsset ccode year

***Table A.6. Within 10 Years of Independence***
*Panel A. Post-independence vs. colonial rule
reg v2x_polyarchy L.v2x_polyarchy L.independent i.ccode i.year if year<1990 & year>=1941 & clockindep<10 &clockindep>-10, cluster(country)
outreg2 using indep10, replace label nocon keep(L.independent)
reg cow_war0 L.cow_incidence L.independent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941&clockindep<10 &clockindep>-10, cluster(country)
outreg2 using indep10, append label nocon keep(L.independent)
reg rev_growth L.rev_growth L.independent i.ccode i.year if year<1990 & year>=1941&clockindep<10 &clockindep>-10, cluster(country)
outreg2 using indep10, append label nocon keep(L.independent)
reg econ_growth L.econ_growth L.independent i.ccode i.year if year<1990 & year>=1950&clockindep<10 &clockindep>-10, cluster(country)
outreg2 using indep10, append label nocon tex(frag) keep(L.independent)
*Panel B. Distinguishing autonomous colonial rule
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941&clockindep<10 &clockindep>-10, cluster(country)
outreg2 using disag10, replace label nocon keep(L.independent L.autonomous)
reg cow_war0 L.cow_incidence L.autonomous L.independent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941&clockindep<10 &clockindep>-10, cluster(country)
outreg2 using disag10, append label nocon keep(L.independent L.autonomous)
reg rev_growth L.rev_growth L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941&clockindep<10 &clockindep>-10, cluster(country)
outreg2 using disag10, append label nocon keep(L.independent L.autonomous)
reg econ_growth L.econ_growth L.autonomous L.independent i.ccode i.year if year<1990 & year>=1950&clockindep<10 &clockindep>-10, cluster(country)
outreg2 using disag10, append label nocon tex(frag) keep(L.independent L.autonomous)


***Table A.7. Expanded Time Sample: 1919-1989***
*Panel A. Post-independence vs. colonial rule
reg v2x_polyarchy L.v2x_polyarchy L.independent i.ccode i.year if year<1990 & year>=1919, cluster(country)
outreg2 using wwi_indep, replace label nocon keep(L.independent)
logit cow_war0 L.cow_incidence L.independent cow_peaceyears_1919 cow_spline1_1919 cow_spline2_1919 cow_spline3_1919 i.ccode i.year if year<1990 & year>=1919, cluster(country)
outreg2 using wwi_indep, append label nocon keep(L.independent)
reg rev_growth L.rev_growth L.independent i.ccode i.year if year<1990 & year>=1919, cluster(country)
outreg2 using wwi_indep, append label nocon keep(L.independent)
reg econ_growth L.econ_growth L.independent i.ccode i.year if year<1990 & year>=1919, cluster(country)
outreg2 using wwi_indep, append label nocon tex(frag) keep(L.independent)
*Panel B. Distinguishing autonomous colonial rule
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent i.ccode i.year if year<1990 & year>=1919, cluster(country)
outreg2 using wwi_disag, replace label nocon keep(L.independent L.autonomous)
logit cow_war0 L.cow_incidence L.autonomous L.independent cow_peaceyears_1919 cow_spline1_1919 cow_spline2_1919 cow_spline3_1919 i.ccode i.year if year<1990 & year>=1919, cluster(country)
outreg2 using wwi_disag, append label nocon keep(L.independent L.autonomous)
reg rev_growth L.rev_growth L.autonomous L.independent i.ccode i.year if year<1990 & year>=1919, cluster(country)
outreg2 using wwi_disag, append label nocon keep(L.independent L.autonomous)
reg econ_growth L.econ_growth L.autonomous L.independent i.ccode i.year if year<1990 & year>=1919, cluster(country)
outreg2 using wwi_disag, append label nocon tex(frag) keep(L.independent L.autonomous)


***Table A.8. Disaggregating Near-Independence Periods***
reg v2x_polyarchy L.v2x_polyarchy L.last5 L.first5 L.after i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using nearindep, replace label nocon keep(L.last5 L.first5 L.after)
logit cow_war0 L.cow_incidence L.last5 L.first5 L.after cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using nearindep, append label nocon keep(L.last5 L.first5 L.after)
reg rev_growth L.rev_growth L.last5 L.first5 L.after i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using nearindep, append label nocon keep(L.last5 L.first5 L.after)
reg econ_growth L.econ_growth L.last5 L.first5 L.after i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using nearindep, append label nocon tex(frag) keep(L.last5 L.first5 L.after)


***Table A.9. Alternative Measures***
*Panel A. Post-independence vs. colonial rule
logit  brecke_onset L.brecke_war L.independent  brecke_peaceyears brecke_spline1 brecke_spline2 brecke_spline3  i.year i.ccode if year<1990 & year>=1941,  cluster(country)
outreg2 using alt_indep, replace label nocon keep(L.independent)
reg  normrev_growth L.normrev_growth  L.independent i.year i.ccode  if year<1990 & year>=1941, cluster(country)
outreg2 using alt_indep, append label nocon keep(L.independent)
reg pwt_growth L.pwt_growth L.independent i.year i.ccode if year<1990 & year>=1941 ,  cluster(country)
outreg2 using alt_indep, append label nocon keep(L.independent) tex(frag)
*Panel B. Distinguishing autonomous colonial rule
logit  brecke_onset L.brecke_war L.autonomous L.independent  brecke_peaceyears brecke_spline1 brecke_spline2 brecke_spline3  i.year  i.ccode if year<1990 & year>=1941,  cluster(country)
outreg2 using alt_disag,  replace label nocon keep(L.autonomous L.independent)
reg  normrev_growth L.normrev_growth  L.autonomous L.independent i.year i.ccode  if year<1990 & year>=1941, cluster(country)
outreg2 using alt_disag,  append label nocon keep(L.autonomous L.independent)
reg pwt_growth L.pwt_growth L.autonomous L.independent i.year i.ccode if year<1990 & year>=1941 ,  cluster(country)
outreg2 using alt_disag,  append label nocon keep(L.autonomous L.independent) tex(frag)


***Table A.10. Independence Lagged 10 Years***
reg v2x_polyarchy L.v2x_polyarchy independent_lag10 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using lag10, replace label nocon keep(independent_lag10)
logit cow_war0 L.cow_incidence independent_lag10 cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using lag10, append label nocon keep(independent_lag10)
reg rev_growth L.rev_growth independent_lag10 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using lag10, append label nocon keep(independent_lag10)
reg econ_growth L.econ_growth independent_lag10 i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using lag10, append label nocon tex(frag) keep(independent_lag10)


*******************************************************************
***SECTION A.3. ADDITIONAL SPECIFICATIONS FOR TIME SERIES MODELS***
*******************************************************************

***Table A.11. Time-Varying Covariates***
*Panel A. Post-independence vs. colonial rule
reg v2x_polyarchy L.v2x_polyarchy L.independent L.cow_incidence L.rev_growth L.econ_growth i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using indep_covar, replace label nocon keep(L.independent L.v2x_polyarchy L.cow_incidence L.rev_growth L.econ_growth)
reg cow_war0 L.cow_incidence L.independent L.v2x_polyarchy L.econ_growth L.rev_growth cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using indep_covar, append label nocon keep(L.independent L.v2x_polyarchy L.cow_incidence L.econ_growth)
reg rev_growth L.rev_growth L.independent L.v2x_polyarchy L.cow_incidence L.econ_growth i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using indep_covar, append label nocon keep(L.independent L.v2x_polyarchy L.cow_incidence L.rev_growth L.econ_growth)
reg econ_growth L.econ_growth L.independent L.v2x_polyarchy L.cow_incidence L.rev_growth i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using indep_covar, append label nocon tex(frag) keep(L.independent L.v2x_polyarchy L.cow_incidence L.rev_growth L.econ_growth)
*Panel B. Distinguishing autonomous colonial rule
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent L.cow_incidence L.rev_growth L.econ_growth i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using disag_covar, replace label nocon keep(L.autonomous L.independent L.v2x_polyarchy L.cow_incidence L.rev_growth L.econ_growth)
reg cow_war0 L.cow_incidence L.autonomous L.independent L.v2x_polyarchy L.rev_growth L.econ_growth cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using disag_covar, append label nocon keep(L.autonomous L.independent L.v2x_polyarchy L.cow_incidence L.rev_growth L.econ_growth)
reg rev_growth L.rev_growth L.autonomous L.independent L.v2x_polyarchy L.cow_incidence L.econ_growth i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using disag_covar, append label nocon keep(L.autonomous L.independent L.v2x_polyarchy L.cow_incidence L.rev_growth L.econ_growth)
reg econ_growth L.econ_growth L.autonomous L.independent L.v2x_polyarchy L.cow_incidence L.rev_growth i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using disag_covar, append label nocon tex(frag) keep(L.autonomous L.independent L.v2x_polyarchy L.cow_incidence L.rev_growth L.econ_growth)


***Table A.12. Spatial Dependence: Controlling for Neighbors' Independence***
*Panel A. Post-independence vs. colonial rule
reg v2x_polyarchy L.v2x_polyarchy L.independent L.neigh_avg_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using indep_neighbor, replace label nocon keep(L.independent L.v2x_polyarchy neigh_avg_independent)
logit cow_war0 L.cow_incidence L.independent cow_peaceyears L.neigh_avg_independent cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using indep_neighbor, append label nocon keep(L.independent neigh_avg_independent)
reg rev_growth L.rev_growth L.independent L.neigh_avg_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using indep_neighbor, append label nocon keep(L.independent L.rev_growth neigh_avg_independent)
reg econ_growth L.econ_growth L.independent L.neigh_avg_independent i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using indep_neighbor, append label nocon tex(frag) keep(L.independent L.econ_growth neigh_avg_independent)
*Panel B. Distinguishing autonomous colonial rule
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent L.neigh_avg_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using disag_neighbor, replace label nocon keep(L.autonomous L.independent L.v2x_polyarchy neigh_avg_independent)
logit cow_war0 L.cow_incidence L.autonomous L.independent L.neigh_avg_independent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using disag_neighbor, append label nocon keep(L.autonomous L.independent neigh_avg_independent)
reg rev_growth L.rev_growth L.autonomous L.independent L.neigh_avg_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using disag_neighbor, append label nocon keep(L.autonomous L.independent L.rev_growth neigh_avg_independent)
reg econ_growth L.econ_growth L.autonomous L.independent L.neigh_avg_independent i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using disag_neighbor, append label nocon tex(frag) keep(L.autonomous L.independent L.econ_growth neigh_avg_independent)


***Table A.13. Second-Order Lags***
*Panel A. Post-independence vs. colonial rule
reg v2x_polyarchy L.v2x_polyarchy L2_v2x_polyarchy L.independent L2_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using indep_2lag, replace label nocon keep(L.independent L2_independent L.v2x_polyarchy L2_v2x_polyarchy)
reg rev_growth L.rev_growth L2_rev_growth L.independent L2_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using indep_2lag, append label nocon keep(L.independent L2_independent L.rev_growth L2_rev_growth)
reg econ_growth L.econ_growth L2_econ_growth L.independent L2_independent i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using indep_2lag, append label nocon tex(frag) keep(L.independent L2_independent L.econ_growth L2_econ_growth)
*Panel B. Distinguishing autonomous colonial rule
reg v2x_polyarchy L.v2x_polyarchy L2_v2x_polyarchy L.autonomous L2_autonomous L.independent L2_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using disag_2lag, replace label nocon keep(L.autonomous L2_autonomous L.independent L2_independent L.v2x_polyarchy L2_v2x_polyarchy)
reg rev_growth L.rev_growth L2_rev_growth L.autonomous L2_autonomous L.independent L2_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using disag_2lag, append label nocon keep(L.autonomous L2_autonomous L.independent L2_independent L.rev_growth L2_rev_growth)
reg econ_growth L.econ_growth L2_econ_growth L.autonomous L2_autonomous L.independent L2_independent i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using disag_2lag, append label nocon tex(frag) keep(L.autonomous L2_autonomous L.independent L2_independent L.econ_growth L2_econ_growth)

*Long-run multipliers
reg v2x_polyarchy L.v2x_polyarchy L2_v2x_polyarchy L.independent L2_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
nlcom (_b[L.independent]+_b[L2_independent])/(1-_b[L.v2x_polyarchy]-_b[L2_v2x_polyarchy])
reg rev_growth L.rev_growth L2_rev_growth L.independent L2_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
nlcom (_b[L.independent]+_b[L2_independent])/(1-_b[L.rev_growth]-_b[L2_rev_growth])
reg econ_growth L.econ_growth L2_econ_growth L.independent L2_independent i.ccode i.year if year<1990 & year>=1950, cluster(country)
nlcom (_b[L.independent]+_b[L2_independent])/(1-_b[L.econ_growth]-_b[L2_econ_growth])
reg v2x_polyarchy L.v2x_polyarchy L2_v2x_polyarchy L.autonomous L2_autonomous L.independent L2_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
nlcom (_b[L.autonomous]+_b[L2_autonomous])/(1-_b[L.v2x_polyarchy]-_b[L2_v2x_polyarchy])
reg v2x_polyarchy L.v2x_polyarchy L2_v2x_polyarchy L.autonomous L2_autonomous L.independent L2_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
nlcom (_b[L.independent]+_b[L2_independent])/(1-_b[L.v2x_polyarchy]-_b[L2_v2x_polyarchy])
reg rev_growth L.rev_growth L2_rev_growth L.autonomous L2_autonomous L.independent L2_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
nlcom (_b[L.autonomous]+_b[L2_autonomous])/(1-_b[L.rev_growth]-_b[L2_rev_growth])
reg rev_growth L.rev_growth L2_rev_growth L.autonomous L2_autonomous L.independent L2_independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
nlcom (_b[L.independent]+_b[L2_independent])/(1-_b[L.rev_growth]-_b[L2_rev_growth])
reg econ_growth L.econ_growth L2_econ_growth L.autonomous L2_autonomous L.independent L2_independent i.ccode i.year if year<1990 & year>=1950, cluster(country)
nlcom (_b[L.autonomous]+_b[L2_autonomous])/(1-_b[L.econ_growth]-_b[L2_econ_growth])
reg econ_growth L.econ_growth L2_econ_growth L.autonomous L2_autonomous L.independent L2_independent i.ccode i.year if year<1990 & year>=1950, cluster(country)
nlcom (_b[L.independent]+_b[L2_independent])/(1-_b[L.econ_growth]-_b[L2_econ_growth])


***Table A.14. Ignoring Time Series Information***
*Panel A. Post-independence vs. colonial rule
reg demo_avg_indep L.independent i.ccode if year<1990 & demo_indep_sample==1, cluster(ccode)
outreg2 using ignore_indep, replace label nocon keep(L.independent)
reg war_avg_indep L.independent i.ccode if year<1990 & war_indep_sample==1, cluster(ccode)
outreg2 using ignore_indep, append label nocon keep(L.independent)
reg rev_avg_indep L.independent i.ccode if year<1990 & rev_indep_sample==1, cluster(ccode)
outreg2 using ignore_indep, append label nocon keep(L.independent)
reg econ_avg_indep L.independent i.ccode if year<1990 & econ_indep_sample==1, cluster(ccode)
outreg2 using ignore_indep, append label nocon keep(L.independent) tex(frag)
*Panel B. Autonomous vs. non-autonomous colonial rule
reg demo_avg_auton L.autonomous i.ccode if year<1990 & demo_auton_sample==1, cluster(ccode)
outreg2 using ignore_auton, replace label nocon keep(L.autonomous)
reg war_avg_auton L.autonomous i.ccode if year<1990 & war_auton_sample==1, cluster(ccode)
outreg2 using ignore_auton, append label nocon keep(L.autonomous)
reg rev_avg_auton L.autonomous i.ccode if year<1990 & rev_auton_sample==1, cluster(ccode)
outreg2 using ignore_auton, append label nocon keep(L.autonomous)
reg econ_avg_auton L.autonomous i.ccode if year<1990 & econ_auton_sample==1, cluster(ccode)
outreg2 using ignore_auton, append label nocon keep(L.autonomous) tex(frag)


***Table A.15 Weighted Fixed Effects Estimator***
*See "Table A.16.R"


**********************************************************************
*****SECTION A.4. ALTERNATIVE DEMOCRACY SUBCOMPONENTS AND INDICES*****
**********************************************************************

***Table A.16. Alternative V-Dem Aggregate Democracy Indices***
reg v2x_api L.v2x_api L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using otherdemo1, replace label nocon keep(L.autonomous L.independent)
reg v2x_mpi L.v2x_mpi L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using otherdemo1, append label nocon keep(L.autonomous L.independent)
reg v2x_libdem L.v2x_libdem L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using otherdemo1, append label nocon keep(L.autonomous L.independent)
reg v2x_liberal L.v2x_liberal L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using otherdemo1, append label nocon keep(L.autonomous L.independent)
reg v2x_partipdem L.v2x_partipdem L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using otherdemo1, append label nocon keep(L.autonomous L.independent) tex(frag)
reg v2x_partip L.v2x_partip L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using otherdemo2, replace label nocon keep(L.autonomous L.independent)
reg v2x_delibdem L.v2x_delibdem L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using otherdemo2, append label nocon keep(L.autonomous L.independent)
reg v2xdl_delib L.v2xdl_delib L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using otherdemo2, append label nocon keep(L.autonomous L.independent)
reg v2x_egaldem L.v2x_egaldem L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using otherdemo2, append label nocon keep(L.autonomous L.independent)
reg v2x_egal L.v2x_egal L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using otherdemo2, append label nocon keep(L.autonomous L.independent) tex(frag)


***Table A.17. Disaggregating Democracy***
*Panel A. Colonial autonomy
reg v2x_frassoc_thick L.v2x_frassoc_thick L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using subcom_auton, replace label nocon keep(L.autonomous L.independent)
reg v2xel_frefair L.v2xel_frefair L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using subcom_auton, append label nocon keep(L.autonomous L.independent)
reg v2x_freexp_altinf L.v2x_freexp_altinf L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using subcom_auton, append label nocon keep(L.autonomous L.independent)
reg v2x_elecoff L.v2x_elecoff L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using subcom_auton, append label nocon keep(L.autonomous L.independent)
reg v2x_suffr L.v2x_suffr L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using subcom_auton, append label nocon keep(L.autonomous L.independent) tex(frag)
*Panel B. Five years before independence
reg v2x_frassoc_thick L.v2x_frassoc_thick L.last5 L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using subcom_5before, replace label nocon keep(L.last5 L.independent)
reg v2xel_frefair L.v2xel_frefair L.last5 L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using subcom_5before, append label nocon keep(L.last5 L.independent)
reg v2x_freexp_altinf L.v2x_freexp_altinf L.last5 L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using subcom_5before, append label nocon keep(L.last5 L.independent)
reg v2x_elecoff L.v2x_elecoff L.last5 L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using subcom_5before, append label nocon keep(L.last5 L.independent)
reg v2x_suffr L.v2x_suffr L.last5 L.independent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using subcom_5before, append label nocon keep(L.last5 L.independent) tex(frag)


**************************************************************************
*****SECTION A.5: SUPPORTING INFORMATION FOR VARIETIES OF COLONIALISM*****
**************************************************************************

***Table A.18. Varieties of Colonialism: Sub-Saharan Africa***
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using africa, replace label nocon keep(i.L.autonomous##i.ssa i.L.independent##i.ssa)
logit cow_war0 L.cow_incidence i.L.autonomous##i.ssa i.L.independent##i.ssa cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using africa, append label nocon keep(i.L.autonomous##i.ssa i.L.independent##i.ssa)
reg rev_growth L.rev_growth i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using africa, append label nocon keep(i.L.autonomous##i.ssa i.L.independent##i.ssa)
reg econ_growth L.econ_growth i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using africa, append label nocon tex(frag) keep(i.L.autonomous##i.ssa i.L.independent##i.ssa)
*Marginal effects: Autonomy non-SSA
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ssa=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_autonomy_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.ssa i.L.independent##i.ssa cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ssa=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_autonomy_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ssa=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_autonomy_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(ssa=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_autonomy_0, append label nocon tex(frag)
*Marginal effects: Autonomy SSA
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ssa=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_autonomy_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.ssa i.L.independent##i.ssa cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ssa=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_autonomy_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ssa=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_autonomy_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(ssa=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_autonomy_1, append label nocon tex(frag)
*Marginal effects: Independence non-SSA
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ssa=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_independent_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.ssa i.L.independent##i.ssa cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ssa=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_independent_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ssa=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_independent_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(ssa=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_independent_0, append label nocon tex(frag)
*Marginal effects: Independence SSA
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ssa=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_independent_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.ssa i.L.independent##i.ssa cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ssa=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_independent_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ssa=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_independent_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.ssa i.L.independent##i.ssa i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(ssa=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using africa_independent_1, append label nocon tex(frag)


***Table A.19. Varieties of Colonialism: British Colonial Rule***
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using britain, replace label nocon keep(i.L.autonomous##i.col_br i.L.independent##i.col_br)
logit cow_war0 L.cow_incidence i.L.autonomous##i.col_br i.L.independent##i.col_br cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using britain, append label nocon keep(i.L.autonomous##i.col_br i.L.independent##i.col_br)
reg rev_growth L.rev_growth i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using britain, append label nocon keep(i.L.autonomous##i.col_br i.L.independent##i.col_br)
reg econ_growth L.econ_growth i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using britain, append label nocon tex(frag) keep(i.L.autonomous##i.col_br i.L.independent##i.col_br)
*Marginal effects: Autonomy, non-British
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(col_br=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_autonomy_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.col_br i.L.independent##i.col_br cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(col_br=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_autonomy_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(col_br=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_autonomy_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(col_br=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_autonomy_0, append label nocon tex(frag)
*Marginal effects: Autonomy, British
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(col_br=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_autonomy_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.col_br i.L.independent##i.col_br cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(col_br=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_autonomy_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(col_br=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_autonomy_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(col_br=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_autonomy_1, append label nocon tex(frag)
*Marginal effects: Independence, non-British
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(col_br=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_independent_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.col_br i.L.independent##i.col_br cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(col_br=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_independent_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(col_br=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_independent_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(col_br=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_independent_0, append label nocon tex(frag)
*Marginal effects: Independence, British
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(col_br=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_independent_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.col_br i.L.independent##i.col_br cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(col_br=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_independent_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(col_br=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_independent_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.col_br i.L.independent##i.col_br i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(col_br=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using britain_independent_1, append label nocon tex(frag)

*Long-run multipliers
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941 & col_br==1, cluster(country)
nlcom _b[L.autonomous]/(1-_b[L.v2x_polyarchy])
reg v2x_polyarchy L.v2x_polyarchy L.autonomous L.independent i.ccode i.year if year<1990 & year>=1941 & col_br==0, cluster(country)
nlcom _b[L.autonomous]/(1-_b[L.v2x_polyarchy])


***Table A.20. Varieties of Colonialism: Length of Colonial Rule***
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using duration, replace label nocon keep(i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration)
logit cow_war0 L.cow_incidence i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using duration, append label nocon keep(i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration)
reg rev_growth L.rev_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using duration, append label nocon keep(i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration)
reg econ_growth L.econ_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using duration, append label nocon tex(frag) keep(i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration)
*Marginal effects: Autonomy, short duration
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=64 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=64 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=64 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=64 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_0, append label nocon tex(frag)
*Marginal effects: Autonomy, median duration
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=80 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_med, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=80 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_med, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=80 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_med, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=80 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_med, append label nocon tex(frag)
*Marginal effects: Autonomy, long duration
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=144 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=144 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=144 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(olsson_duration=144 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_autonomy_1, append label nocon tex(frag)
*Marginal effects: Independence, short duration
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(olsson_duration=64 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(olsson_duration=64 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(olsson_duration=64 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(olsson_duration=64 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_0, append label nocon tex(frag)
*Marginal effects: Independence, median duration
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(olsson_duration=80 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_med, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(olsson_duration=80 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_med, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(olsson_duration=80 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_med, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(olsson_duration=80 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_med, append label nocon tex(frag)
*Marginal effects: Independence, long duration
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(olsson_duration=144 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(olsson_duration=144 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(olsson_duration=144 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.olsson_duration i.L.independent##c.olsson_duration i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(olsson_duration=144 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using duration_independent_1, append label nocon tex(frag)

*Determine quartiles
univar olsson_duration if year<1990 &  year==1989


***Table A.21. Varieties of Colonialism: State Antiquity***
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using statehist, replace label nocon keep(i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500)
logit cow_war0 L.cow_incidence i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using statehist, append label nocon keep(i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500)
reg rev_growth L.rev_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using statehist, append label nocon keep(i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500)
reg econ_growth L.econ_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using statehist, append label nocon tex(frag) keep(i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500)
*Marginal effects: Autonomy, short state antiquity
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_0, append label nocon tex(frag)
*Marginal effects: Autonomy, median state antiquity
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=0.11 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_med, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=0.11 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_med, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=0.11 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_med, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=0.11 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_med, append label nocon tex(frag)
*Marginal effects: Autonomy, long state antiquity
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=.56 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=.56 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=.56 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(statehist1500=.56 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_autonomy_1, append label nocon tex(frag)
*Marginal effects: Independence, short state antiquity
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(statehist1500=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(statehist1500=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(statehist1500=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(statehist1500=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_0, append label nocon tex(frag)
*Marginal effects: Independence, median state antiquity
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(statehist1500=0.11 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_med, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(statehist1500=0.11 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_med, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(statehist1500=0.11 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_med, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(statehist1500=0.11 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_med, append label nocon tex(frag)
*Marginal effects: Independence, long state antiquity
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(statehist1500=.56 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(statehist1500=.56 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(statehist1500=.56 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.statehist1500 i.L.independent##c.statehist1500 i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(statehist1500=.56 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using statehist_independent_1, append label nocon tex(frag)

*Determine quartiles
univar statehist1500 if year<1990 &  year==1989


***Table A.22. Varieties of Colonialism: European Settlers***
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using settler, replace label nocon keep(i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent)
logit cow_war0 L.cow_incidence i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using settler, append label nocon keep(i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent)
reg rev_growth L.rev_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using settler, append label nocon keep(i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent)
reg econ_growth L.econ_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using settler, append label nocon tex(frag) keep(i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent)
*Marginal effects: Autonomy, low settlers
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-4.61 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-4.61 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-4.61 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-4.61 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_0, append label nocon tex(frag)
*Marginal effects: Autonomy, median settlers
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-2.21 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_med, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-2.21 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_med, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-2.21 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_med, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-2.21 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_med, append label nocon tex(frag)
*Marginal effects: Autonomy, high settlers
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-0.15 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-0.15 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-0.15 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(ln_european_percent=-0.15 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_autonomy_1, append label nocon tex(frag)
*Marginal effects: Independence, low setters
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-4.61 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-4.61 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-4.61 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-4.61 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_0, append label nocon tex(frag)
*Marginal effects: Independence, median setters
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-2.21 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_med, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-2.21 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_med, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-2.21 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_med, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-2.21 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_med, append label nocon tex(frag)
*Marginal effects: Independence, high settlers
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-0.15 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-0.15 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-0.15 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##c.ln_european_percent i.L.independent##c.ln_european_percent i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(ln_european_percent=-0.15 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using settler_independent_1, append label nocon tex(frag)

*Determine quartiles
univar ln_european_percent if year<1990 &  year==1989


***Table A.23. Varieties of Colonialism: Disrupted Colonial Rule During WWII***
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using occupied, replace label nocon keep(i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied)
logit cow_war0 L.cow_incidence i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using occupied, append label nocon keep(i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied)
reg rev_growth L.rev_growth i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using occupied, append label nocon keep(i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied)
reg econ_growth L.econ_growth i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using occupied, append label nocon tex(frag) keep(i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied)
*Marginal effects: Autonomy, non-disrupt
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(wwii_occupied=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_autonomy_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(wwii_occupied=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_autonomy_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(wwii_occupied=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_autonomy_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(wwii_occupied=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_autonomy_0, append label nocon tex(frag)
*Marginal effects: Autonomy, disrupt
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(wwii_occupied=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_autonomy_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(wwii_occupied=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_autonomy_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(wwii_occupied=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_autonomy_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(wwii_occupied=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_autonomy_1, append label nocon tex(frag)
*Marginal effects: Independence, non-disrupt
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(wwii_occupied=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_independent_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(wwii_occupied=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_independent_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(wwii_occupied=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_independent_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(wwii_occupied=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_independent_0, append label nocon tex(frag)
*Marginal effects: Independence, disrupt
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(wwii_occupied=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_independent_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(wwii_occupied=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_independent_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(wwii_occupied=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_independent_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.wwii_occupied i.L.independent##i.wwii_occupied i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(wwii_occupied=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using occupied_independent_1, append label nocon tex(frag)


****************************************************************
*****SECTION A.7. DECOLONIZATION WARS AND GUERRILLA REGIMES*****
****************************************************************

***Table A.24. Guerrilla Takeover at Independence***
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using guerrilla, replace label nocon keep(i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl)
logit cow_war0 L.cow_incidence i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using guerrilla, append label nocon keep(i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl)
reg rev_growth L.rev_growth i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1941, cluster(country)
outreg2 using guerrilla, append label nocon keep(i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl)
reg econ_growth L.econ_growth i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1950, cluster(country)
outreg2 using guerrilla, append label nocon tex(frag) keep(i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl)
*Marginal effects: Autonomy, non-guerrilla
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(vdecol_govern_fl=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_autonomy_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(vdecol_govern_fl=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_autonomy_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(vdecol_govern_fl=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_autonomy_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(vdecol_govern_fl=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_autonomy_0, append label nocon tex(frag)
*Marginal effects: Autonomy, guerrilla
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(vdecol_govern_fl=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_autonomy_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(vdecol_govern_fl=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_autonomy_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.autonomous) at(vdecol_govern_fl=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_autonomy_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.autonomous) at(vdecol_govern_fl=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_autonomy_1, append label nocon tex(frag)
*Marginal effects: Independence, non-guerrilla
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(vdecol_govern_fl=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_independent_0, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(vdecol_govern_fl=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_independent_0, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(vdecol_govern_fl=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_independent_0, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(vdecol_govern_fl=0 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_independent_0, append label nocon tex(frag)
*Marginal effects: Independence, guerrilla
reg v2x_polyarchy L.v2x_polyarchy i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(vdecol_govern_fl=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_independent_1, replace label nocon
logit cow_war0 L.cow_incidence i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl cow_peaceyears cow_spline1 cow_spline2 cow_spline3 i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(vdecol_govern_fl=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_independent_1, append label nocon
reg rev_growth L.rev_growth i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1941, cluster(country)
margins, dydx(L.independent) at(vdecol_govern_fl=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_independent_1, append label nocon
reg econ_growth L.econ_growth i.L.autonomous##i.vdecol_govern_fl i.L.independent##i.vdecol_govern_fl i.ccode i.year if year<1990 & year>=1950, cluster(country)
margins, dydx(L.independent) at(vdecol_govern_fl=1 L.autonomous=0 L.independent=0) asbalanced emptycells(reweight) atmeans noestimcheck post
outreg2 using guerrilla_independent_1, append label nocon tex(frag)


******************************************************************************
*****SECTION A.8. COMPARING POST-INDEPENDENCE TO THE HIGH COLONIAL PERIOD*****
******************************************************************************

*Check for stationarity
reg D.v2x_polyarchy i.ccode if year<1990 & early_sample==1  
predict demo_residuals2, resid
xtunitroot fisher demo_residuals2 if year<1990 & early_sample==1  , dfuller lag(1)

***Table A.25. Changing the Counterfactual: Post-Independence vs. High Colonial Period***
reg D.v2x_polyarchy L.v2x_polyarchy L.independent i.ccode if year<1990 & early_sample==1 & year>=1919, cluster(country)
outreg2 using early, replace label keep(L.independent) nocon
logit cow_war0 L.cow_incidence L.independent cow_peaceyears_1919 cow_spline1_1919 cow_spline2_1919 cow_spline3_1919 i.ccode if year<1990 & early_sample==1 & year>=1919, cluster(country)
outreg2 using early, append label keep(L.independent) nocon
reg rev_growth L.rev_growth L.independent i.ccode if year<1990 & early_sample==1 & year>=1919, cluster(country)
outreg2 using early, append label keep(L.independent) nocon tex(frag)
